﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LTKJ.RTU
{
    /// <summary>
    /// 设备参数信息
    /// </summary>
    public class ModelDevice
    {
        /// <summary>
        /// 设备编号ID
        /// </summary>
        public string DeviceId { get; set; }
        /// <summary>
        /// 设备名称
        /// </summary>
        public string DeviceName { get; set; }

        /// <summary>
        /// 设备类型 0 rtu  1 车辆
        /// </summary>
        public string DeviceType { get; set; }

        /// <summary>
        /// 命令類型 0 普通數據  1 液位數據
        /// </summary>
        public int cmdType { get; set; }

        /// <summary>
        /// 是否被定位  未定位   定位
        /// </summary>
        public string isLocated { get; set; }

        /// <summary>
        /// rtuId
        /// </summary>
        public string rtuId { get; set; }

        /// <summary>
        /// cmdReportId
        /// </summary>
        public int cmdReportId { get; set; }

        /// <summary>
        /// 完整返回指令
        /// </summary>
        public string fullData { get; set; }

        /// <summary>
        /// 油量百分之几
        /// </summary>
        public double oilQuantityPercent { get; set; }

        /// <summary>
        /// 经度
        /// </summary>
        public double LNG { get; set; }

        /// <summary>
        /// 纬度
        /// </summary>
        public double LAT { get; set; }

        /// <summary>
        /// 海拔高度
        /// </summary>
        public double ALT { get; set; }

        /// <summary>
        /// 定位模式0:GPS, 1:北斗, 2:混合
        /// </summary>
        public string posModel { get; set; }

        /// <summary>
        /// 液位1
        /// </summary>
        public double YW1 { get; set; }

        /// <summary>
        /// 液位2
        /// </summary>
        public double YW2 { get; set; }

        /// <summary>
        /// 液位3
        /// </summary>
        public double YW3 { get; set; }

        /// <summary>
        /// 液位4
        /// </summary>
        public double YW4 { get; set; }

        /// <summary>
        /// 液位5
        /// </summary>
        public double YW5 { get; set; }

        /// <summary>
        /// 液位6
        /// </summary>
        public double YW6 { get; set; }

        /// <summary>
        /// 液位7
        /// </summary>
        public double YW7 { get; set; }

        /// <summary>
        /// 液位8
        /// </summary>
        public double YW8 { get; set; }

        /// <summary>
        /// 液位9
        /// </summary>
        public double YW9 { get; set; }

        /// <summary>
        /// 液位10
        /// </summary>
        public double YW10 { get; set; }
    

        /// <summary>
        /// 温度1
        /// </summary>
        public double Temp1 { get; set; }

        /// <summary>
        /// 温度2
        /// </summary>
        public double Temp2 { get; set; }

        /// <summary>
        /// 温度3
        /// </summary>
        public double Temp3 { get; set; }

        /// <summary>
        /// 温度4
        /// </summary>
        public double Temp4 { get; set; }

        /// <summary>
        /// 温度5
        /// </summary>
        public double Temp5 { get; set; }

        /// <summary>
        /// 温度6
        /// </summary>
        public double Temp6 { get; set; }

        /// <summary>
        /// 温度7
        /// </summary>
        public double Temp7 { get; set; }

        /// <summary>
        /// 温度8
        /// </summary>
        public double Temp8 { get; set; }

        /// <summary>
        /// 温度9
        /// </summary>
        public double Temp9 { get; set; }


        /// <summary>
        /// 温度10
        /// </summary>
        public double Temp10 { get; set; }

       
        /// <summary>
        /// 速度
        /// </summary>
        public double V { get; set; }

        /// <summary>
        /// 方向
        /// </summary>
        public double Direction { get; set; }

        /// <summary>
        /// 里程
        /// </summary>
        public string LI_CHENG { get; set; }

        /// <summary>
        /// 采集时间
        /// </summary>
        public DateTime Stime { get; set; }

        /// <summary>
        /// 消防战斗状态码
        /// </summary>
        public int XF_Code { get; set; }

        /// <summary>
        /// 康耐德采集器开关量状态1 0为开, 1为合.
        /// </summary>
        public int KND_status1{ get; set; }

        /// <summary>
        /// 康耐德采集器开关量状态2 0为开, 1为合.
        /// </summary>
        public int KND_status2 { get; set; }

        /// <summary>
        ///康耐德采集器温度采样值
        /// </summary>
        public int KND_Temp { get; set; }

        /// <summary>
        /// 运营商code  1:中国移动, 2:中国联通，3:中国电信
        /// </summary>
        public int YYS_Code { get; set; }
   
        /// <summary>
        /// 电压a
        /// </summary>
        public double Ua { get; set; }
        /// <summary>
        /// 电压b
        /// </summary>
        public double Ub { get; set; }
        /// <summary>
        /// 电压c
        /// </summary>
        public double Uc { get; set; }
        /// <summary>
        /// 电流a
        /// </summary>
        public double Ia { get; set; }
        /// <summary>
        /// 电流b
        /// </summary>
        public double Ib { get; set; }
        /// <summary>
        /// 电流c
        /// </summary>
        public double Ic { get; set; }
        /// <summary>
        /// 有功功率
        /// </summary>
        public double ActivePower { get; set; }
        /// <summary>
        /// 无功功率
        /// </summary>
        public double ReactivePower { get; set; }
        /// <summary>
        /// 功率因数
        /// </summary>
        public double ecos { get; set; }

        /// <summary>
        /// WORD16, LAC, Location Area Code, 呼叫区编码
        /// </summary>
        public string d1 { get; set; }

        /// <summary>
        /// WORD16, CI, Cell ID, 蜂窝小区编码
        /// </summary>
        public string d2 { get; set; }

        /// <summary>
        /// 1号罐压力
        /// </summary>
        public double Pressure { get; set; }

        /// <summary>
        /// 液位1报警开关量 00控制器关 01控制器开 FF控制器无
        /// </summary>
        public string YW_Switch1{get;set; }

        /// <summary>
        /// 液位2报警开关量 00控制器关 01控制器开 FF控制器无
        /// </summary>
        public string YW_Switch2 { get; set; }

        /// <summary>
        /// 液位3 报警开关量 00控制器关 01控制器开 FF控制器无
        /// </summary>
        public string YW_Switch3 { get; set; }

        /// <summary>
        /// 液位4 报警开关量 00控制器关 01控制器开 FF控制器无
        /// </summary>
        public string YW_Switch4 { get; set; }

        /// <summary>
        /// 光纤周界 00周界正常 01周界报警 FF周界无
        /// </summary>
        public string GXZJ { get; set; }

        /// <summary>
        /// 灯开关量 00灯关01灯开FF灯无
        /// </summary>
        public string Light_Switch { get; set; }

        /// <summary>
        /// 液罐1 主加热棒 00加热棒关 01加热棒开 FF加热棒无
        /// </summary>
        public string Main_JRB1_switch { get; set; }

        /// <summary>
        /// 液罐1 副加热棒 00加热棒关 01加热棒开 FF加热棒无
        /// </summary>
        public string Assis_JRB1_switch { get; set; }

        /// <summary>
        /// 液罐2 主加热棒2 00加热棒关 01加热棒开 FF加热棒无
        /// </summary>
        public string Main_JRB2_switch { get; set; }

        /// <summary>
        /// 液罐2 副加热棒 00加热棒关 01加热棒开 FF加热棒无
        /// </summary>
        public string Assis_JRB2_switch { get; set; }

        /// <summary>
        /// 液罐3 主加热棒 00加热棒关 01加热棒开 FF加热棒无
        /// </summary>
        public string Main_JRB3_switch { get; set; }

        /// <summary>
        /// 液罐3  副加热棒 00加热棒关 01加热棒开 FF加热棒无
        /// </summary>
        public string Assis_JRB3_switch { get; set; }


        /// <summary>
        /// 液罐4 主加热棒 00加热棒关 01加热棒开 FF加热棒无
        /// </summary>
        public string Main_JRB4_switch { get; set; }

        /// <summary>
        /// 液罐4 副加热棒 00加热棒关 01加热棒开 FF加热棒无
        /// </summary>
        public string Assis_JRB4_switch { get; set; }

        /// <summary>
        /// 门磁 10前门关 11前门开 20后门关 21后门关 1F前门门磁无 2F后门门磁无
        /// </summary>
        public string DoorSensor { get; set; }

    }
}
